import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './config'
import './components/Toast/toast.css';
import Toast from './components/Toast/index';

Vue.use(Toast)
Vue.config.productionTip = false

Vue.filter('formatDate', function (d) {
  if (!d) return '';
  return `${d.year + 1900}-${d.month + 1}-${d.date} ${d.hours}:${d.minutes}:${d.seconds}`;
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
